home *** CD-ROM | disk | FTP | other *** search
- /*
- SongPlayerCLI v1.52 (by Gareth Griffiths)
- E-Mail: gazchap@btinternet.com
- List.rexx - Outputs a list of the files in the playlist.
- */
-
- IF ~SHOW('P','SONGPLAYER.1') THEN DO
- ADDRESS COMMAND
- SAY "Can't find ARexx port 'SONGPLAYER.1'"
- EXIT
- END
-
- ADDRESS 'SONGPLAYER.1'
- OPTIONS RESULTS
- TIME_TYPE 2
- g=0
- 'STOP'
- 'GET_SELECTED'
- old=result
- 'GET_COUNT'
- last=result
- 'GET_TOTAL'
- totaldur=result
- DO f=1 to last
- g = g + 1
- ADDRESS SONGPLAYER.1
- 'SELECT 'f
- 'GET_TITLE'
- title=result
- 'GET_ARTIST'
- artist=result
- ADDRESS COMMAND
- IF f<10 then do
- SAY ' · ('f') 'artist': 'title
- END
- if f>9 then do
- SAY ' · ('f') 'artist': 'title
- END
- if g=25 then do
- g=0
- address command
- options prompt '(More - Press RETURN)'
- pull more
- end
- END
- SAY last' files in playlist; 'totaldur' total playing time.'
- ADDRESS SONGPLAYER.1
- 'SELECT 'old
- 'PLAY'
- EXIT